<template>
	<view class="friendDetails">
		<image :src="info.thumb" mode="" class="photo"></image>
		<view class="title">
			<p style="color: #333333;font-size: 36upx; font-weight:bold;">{{info.nickname||"未知"}}</p>
			<view class="titleLabel" style="color: #666666;font-size: 28upx;">
				<text>22岁</text>
				<text>{{info.height}}米</text>
				<text>{{info.education}}</text>
			</view>
			<p style="color: #666666;font-size: 28upx;">{{info.like_num}}个人喜欢</p>
		</view>
		<view class="kong"></view>
		<view class="list">
			<view class="contnt">
				<view class="contntTitle"></view>
				<text style="color: #333333;font-size: 36upx; font-weight:bold;padding-left: 20upx;">基本资料</text>
			</view>
			<view class="listContnt">
				<view class="data">
					<text>亿家账号</text>
					<text>{{info.mobile}}</text>
				</view>
				<view class="data">
					<text>出生年月</text>
					<text>{{info.birth}}</text>    
				</view>
				<view class="data">
					<text>居住</text>
					<text>{{info.address}}</text>  
				</view>
				<view class="data">
					<text>收入</text>
					<text>{{info.income}}K</text>
				</view>
				<view class="data">
					<text>婚姻</text>
					<text v-if="info.is_marry">未婚</text>
					<text v-else>已婚</text>  
				</view>
				<view class="data">
					<text>身高</text>
					<text>{{info.height}}米</text>
				</view>
				<view class="data">
					<text>体重</text>
					<text>{{info.weight}}</text>
				</view>
				<view class="data">
					<text>类型</text>
					<text v-if="info.type==1">交友</text>
					<text v-else-if="info.type==2">结婚</text>
					<text v-else-if="info.type==3">旅游</text>
					<text v-else>其他</text>  
				</view>
				<view class="data">
					<text>爱好</text>
					<text>{{info.hobby}}</text>
				</view>
				<view class="data">
					<text>特长</text>
					<text>{{info.speciality}}</text>
				</view>
				<view class="data">
					<text>微信</text>
					<text>{{info.wechat_no}}</text>
				</view>
				<view class="data">
					<text>手机号</text>
					<text>{{info.phone}}</text>
				</view>
				<view class="clear"></view>
			</view>
			<button type="default" style="background-color: #FF824A;color: #FFFFFF;width: 690upx;line-height:90upx;border-radius: 50upx;margin: 50upx auto;" @tap="jump()">查看联系方式</button>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			info:''
		};
	},
	onLoad(e) {
		var id=e.id;
		uni.request({
			url:this.baseUrl+'/Friends/details',
			dataType: "json",
			data:{id:id},
			success: (res) => {
				this.info=res.data.data.list.data;  
			}
		})
	},
	methods: {
		jump(){
			uni.navigateTo({
				url: 'pay'
			});
		}
	}
};
</script>

<style lang="scss">
.friendDetails {
	width: 100%;
	.photo {
		height: 750upx;
		width: 100%;
	}
	.title {
		padding-left: 30upx;
		line-height: 70upx;
		height: 225upx;
		.titleLabel {
			text {
				padding-right: 60upx;
			}
		}
	}
	.kong {
		height: 10upx;
		background-color: #f5f6f7;
	}
	.list {
	
		padding-right: 30upx;
		padding-left: 30upx;
		.contnt {
			display: flex;
			.contntTitle {
				width: 6upx;
				height: 32upx;
				background: rgba(238, 15, 36, 1);
				border-radius: 3upx;
				position: relative;
				top: 10upx;
			}
		}
		.listContnt {
			.data {
				display: inline-block;
				width: 100%;
				line-height: 80upx;
				border-bottom: 1px solid #e7e7e7;
				text:first-child {
					float: left;
					font-size: 32upx;
					color: #333333;
				}
				text:last-child {
					float: right;
					font-size: 28upx;
					color: #666666;
				}
			}
			.clear{
				clear:both
			}
		}
	}
}
</style>
